<!DOCTYPE html>
<html >
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>表单</title>
    <style>
        form{
            width: 300px;
            border: 1px solid #ddd;
            text-align:center ;
            padding:10px 20px;
            box-sizing: border-box;
            margin: 40px auto;
            border-radius: 6px;
        }
        form div{
            margin:  15px 0;
        }
        form div select,
        form div button{
            width: 100%;
            height: 36px;
        }
        input[type='text'],
        input[type='password']
        {
            width: 100%;
            height: 36px;
            padding: 0 15px;
            box-sizing: border-box;
            border:  1px solid #ddd;
            border-radius: 4px;
        }
        button{
            background-color: cornflowerblue;
            color: #fff;
            border: none;
            border-radius: 4px;
        }
        h4{
            font-size: 17px;
            margin: 15px 0;
        }
        textarea{
            width: 100%;
            height: 100%;
            border: 1px solid #ddd;
            border-radius: 4px;
            padding: 10px 15px;
            box-sizing: border-box;
            resize: none;
        }
        select{
            border: 1px solid #ddd;
            border-radius: 4px;
            padding:0 15px ;
            box-sizing: border-box;
        }
    </style>
</head>
<body>
    <form action="" method="">
        <h4>请登录</h4>
        <div>
            <input type="text" placeholder="用户名   ">
        </div>
        <div>
            <input type="password" placeholder="密码    ">
        </div>
      <div>
          <input  id="nv"type="radio" name="gender" value="0">
          <label for="nv">女</label>

          <input id="nan"type="radio" name="gender" value="1">
          <label for="nan">男</label>

          <input id="baomi"type="radio" name="gender" value="-1">
          <label for="baomi">保密</label>
      </div>
      <div>
          <input id="music"type="checkbox"name="like" value="music">
          <label for="music">音乐</label>
          <input id="read"type="checkbox"name="like" value="read">
          <label for="read">阅读</label>
          <input id="sport"type="checkbox"name="like" value="sport">
          <label for="sport">运动</label>
      </div>
      <div>
        <select >
            <option value=" sx">山西</option>
            <option value=" sd">山东</option>
            <option value=" hn">河南</option>
            <option value=" hb">河北</option>
        </select>
    </div>
      <div>
          <textarea placeholder="个人简介"> </textarea>
      </div>
       <div>
        <button>登录</button>
       </div>
       

    </form>

</body>
</html>